import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  patchJson,
  daleteJson
} from '../utils/request';

//获取所有菜单
export function qryActivityConfig(data) {
  return post('/api/promotion-service/v1/ActivityConfig/qryActivityConfig', data);
}

// 获取现金券活动头部数据
export function queryCashActivityHead(data) {
  return post('/api/promotion-service/v1/ActivityConfig/queryCashActivityHead', data);
}

//获取所有菜单
export function queryPrize(data) {
  return post('/api/promotion-service/v1/prize/queryPrize', data);
}

//新增奖品
export function createActivityConfig(data) {
  return post('/api/promotion-service/v1/ActivityConfig/createActivityConfig', data);
}


//撤销发布
export function editByUuid(data) {
  return post('/api/promotion-service/v1/ActivityConfig/editByUuid', data);
}

// 编辑现金券，礼品库
export function editCashPrizeConfig(data) {
  return post('/api/promotion-service/v1/ActivityConfig/editCashPrizeConfig', data);
}
